<?php
namespace app\admin\validate\Parents;
use think\validate;

class Parents extends validate{

	/**
	 *@description 验证器规则
	 *@buildcode(true)
	*/
	protected $rule = [
		'parent_phone'=>['regex'=>'/^1[3456789]\d{9}$/'],
	];

	/**
	 *@description 错误提示
	 *@buildcode(true)
	*/
	protected $message = [
		'parent_phone.regex'=>'家长手机号格式错误',
	];

	/**
	 *@description 验证场景
	 *@buildcode(true)
	*/
	protected $scene  = [
		'add'=>['parent_phone'],
		'update'=>['parent_phone'],
	];



}